Significantly improved black phase stability of FAPbI3 nanowires via spatially confined vapor phase growth in nanoporous templates.