Planning the Spinning Process by Means of Neural Networks and Genetic Algorithms