Application of simulated annealing and genetic algorithm for solving optimum power flow problems