MATLAB-Based Modeling of Shading Effects in Photovoltaic arrays