Oscillations of a beam in fluid flow : a means for underwater propulsion