Control of flux distributions in transformer cores