Modelling of oscillating foil propulsors in waves