Calculate Gravitational Potential Energy