Accurate measurement of magnetic power losses and hysteresis loops under generic induction waveforms with minor loops