What are the two factors that effect the amount of potential energy of a body?​