State Space Modelling of Current-Mode Control and its Application to Input Impedance Shaping of Power Electronic Constant-Power Loads