A finite-element study of the onset of vortex shedding in flow past variously shaped bodies