Shape optimisation of floating wave energy converters for a specified wave energy spectrum