Predictive Reference Shaping for Constrained Robotic Systems Using Evolutionary Algorithms