Direct observation of nanometer-scale Joule and Peltier effects in phase change memory devices