Connection criteria at the distribution network for distributed generation