Subtask Control to Avoid Joint Limits for Redundant Planar Robot