Thermal stability of titanium nitride for shallow junction solar cell contacts