Impacts of distributed generation on distribution system power quality