General strength criterion for geomaterials