Haar state equations for power electronics sysetm modelling