Relation between the Mogi and the Coulomb failure criteria