Multi-layer magnetism and thermal stability in perpendicular magnetic tunnel junctions