Superconducting critical temperatures of the carbides and nitrides with the NaCl structure: Superconductivity of MoC