Statistics for Assesment of renewable energy resources and the impact of DG on power quality in distribution network