how waves reach shore