Beam shape sensing using inverse Finite Element Method: theory and experimental validation