Effect of motion profile shape on energy extraction performance of flapping foil