Automatic design of fiber-reinforced soft actuators for trajectory matching