how does height affects the acceleration due to gravity