Power conditioning system using sliding mode control