How motion trajectory affects energy extraction performance of a biomimic energy generator with an oscillating foil?