Application of an energy recovery device with RO membrane for wave powered desalination