A shape sensing methodology for beams with generic cross-sections: Application to airfoil beams