A comprehensive study of transformer winding losses using the finite element method