Optimization for the planning of distributed renewable generators using genetic algorithm