Global and local structures of the Ge-Sb-Te ternary alloy system for a phase-change memory device