High thermal stability and low density variation of carbon-doped Ge2Sb2Te5 for phase-change memory application