Numerical investigation of hydrodynamic performance of flapping foils for energy harvesting