A Reliability Prediction Method for Phase-Change Devices Using Optimized Pulse Conditions