Reactive Task Adaptation of a Dynamic System With External Disturbances Based on Invariance Control and Movement Primitives