Minimizing Power Losses in Distribution Systems Using GA in Planning and Operation: A Case Study for DGs and SCs