Structure, stability and water adsorption on ultra-thin TiO2 supported on TiN.