LV and MV distribution networks reconfiguration for minimum losses of LV and MV distribution networks reconfiguration for minimum losses