SO(3) monopoles, vortices and confinement in SU(2) gauge theory