The application of the genetic algorithm to the minimization of potential energy functions