Definition of Exploratory Trajectories in Robotics Using Genetic Algorithms