what are the potential energy and the total energy