Derivation of geometric stiffness and mass matrices for finite element hybrid models