Magnetic couplings or brakes