Determine the acceleration due to gravity by simple pendulum