Thermal decomposition of pyrite in the nitrogen atmosphere