Electromagnetic Fields, Power Losses, And Resistance Of High-Frequency Magnetic Devices