The motion of a solid sphere suspended by a Newtonian or viscoelastic jet