Monitoring PWM signals in stand-alone photovoltaic systems