What two facts did Newton need to be able to calculate the acceleration of the Moon?