in an oscillator consisting of a spring and a block, the amount of elastic potential energy is at its maximum when: