What are the factors that effect the energy of a wave?​