SET switching effects on PCM endurance