Numerical simulation of vortex ring formation in the presence of background flow with implications for squid propulsion