What does the energy in a wave do when amplitude increases?