Multi-phase structure of thermally diffused niobium nitride