Shape sensing of variable cross-section beam using the inverse finite element method and isogeometric analysis