Shape and stress sensing of multilayered composite and sandwich structures using an inverse Finite Element Method