Magnetically coupled circuits