Magnetic ballasts