Density functional study of the TiN/Ge2Sb2Te5 interface