The effect of interfaces on phase change memory switching