A fast and effective procedure for sensing solar irradiance in photovoltaic arrays