Exploring the stability and reactivity of Ni2P and Mo2C catalysts using ab initio atomistic thermodynamics and conceptual DFT approaches