Kinematic optimization of a flapping foil power generator using a multi-fidelity evolutionary algorithm