Integration of distributed energy resources in distribution power systems