Compatibility study of Ti and Ge2Sb2Te5 for phase-change memory applications