Flapping propulsion using a fin ray