How will the elastic potential energy and the gravitational potential energy change at different points in the oscillation?