This seaside town will power thousands of homes with waves