Waveform dependent switching losses in flyback transformer foil windings