Core loss of a transformer