Power loss reduction and reliability improvement of a large-scale electrical distribution system using network reconfiguration