Time-resolved analysis of the set process in an electrical phase-change memory device