Ab initio calculations of the superconducting transition temperature for NbC at various pressures