Optimizing the shape of a surge-and-pitch wave energy collector using a genetic algorithm