Magnetic cores for electrical transformers