Measurement method for transient programming current of 1T1R phase-change memory