A bio-inspired study on tidal energy extraction with flexible flapping wings