What TWO factors determine gravitational potential energy?