Vortex dynamics and Reynolds number effects of an oscillating hydrofoil in energy harvesting mode