Investigating the switching mechanism of interfacial phase change memory