How are loudness and intensity related to the amplitude and energy of a wave?