The Effect of Distributed Generation on Distribution Network Stability