potential energy formula in electrostatics