Ab initio simulations of the surface free energy of TiN(001)