Strain-based Shape Prediction for Flexible Beam-like Structures