Moment-Based Discontinuous Phasor Transform and its Application to the Steady-State Analysis of Inverters and Wireless Power Transfer Systems