Power system frequency estimation based on simulated annealing. Part I: A constant frequency study