Chemistry of high-temperature superconductivity in the NbN family