On the effect of flexibility on the performance of a bio-inspired fin