Shape-Sensing of Beam Elements Undergoing Material Nonlinearities