Optimal Placement and Sizing of Distributed Generation for Voltage Profile Improvement and Power Loss Minimization