Active shield for low-frequency magnetic fields