A yield criterion for isotropic and cross-anisotropic cohesive-frictional materials