A Life Cycle Model for Optimal DG Placement on Distribution Networks to Reduce Active Losses and Investment Costs