An optimization method for distribution system configuration based on genetic algorithm