A Design Framework for Long-Reach Manipulators in Confined Spaces Using Task- Based Kinematic Optimization and Surface Clustering