Thermal stability of hafnium and hafnium nitride gates on HfO2 gate dielectrics