Magnetic coupling for pumps