Electro-thermal phenomena in phase change memory