Charge transfer and potential energy