Application of Inverse Finite Element Method to Shape Sensing of Curved Beams