Method and Algorithm for the Reliability Estimation of Medium-Voltage Urban Distribution Networks