Text this: Reduction of losses and operating costs in distribution networks using a genetic algorithm and mathematical optimization