A finite element study of incompressible flows past oscillating cylinders and aerofoils