using transformers with a magnetic core