Effects of pitching motion profile on energy harvesting performance of a semi-active flapping foil using immersed boundary method