The physiochemical properties of TiOxNy films with controlled oxygen partial pressure