how can the energy of water waves affect a shoreline