Gravitational versus electrostatic potential energy