Data-Driven Shape Sensing in Continuum Manipulators via Sliding Resistive Flex Sensors