Distributed generation penetration determination considering power quality limits of distribution networks