Controlling the interactions of space-variant polarization beams with rubidium vapor using external magnetic fields