Optimal Planning of Distribution Generation for Distribution Network Regarding to Losses Energy and Harmonic Reduction