Distribution Network Reconfiguration Considering the Impacts of Local Renewable Generation and External Power Grid