Dynamic and static voltage stability analysis of distribution systems in the presence of distributed generation