Modeling and detection of hotspot in shaded photovoltaic cells