When an elastic material is stretched by a force, the energy stored in it is