A nonlinear 1-dimensional model of a layered tubular beam with deformable cross-sections