Towards adjoint-based inversion of the Lam\ e parameter field for slender structures with cantilever loading