Synthesis-driven, structure-dependent optical behavior in phase-tunable NaYF4:Yb,Er-based motifs and associated heterostructures.