An Invariant Finite Element Model for Composite Structures: the Generalized Unified Formulation