Modeling and reconfiguration of solar photovoltaic arrays under non-uniform shadow conditions