Hot spot detection and protection methods for photovoltaic systems