Ripples on water and light waves are similar because both