Elastic potential energy and springs