Full 3D finite element Cosserat formulation with application in layered structures