Remarkable long-term stability of nanoconfined metal-halide perovskite crystals against degradation and polymorph transitions.