Numerical Investigation of Oscillating Flapping Foils for Energy Harvesting in Freestream and Ground Effect