High quality multi-functional NaErF4 nanocrystals: structure-controlled synthesis, phase-induced multi-color emissions and tunable magnetic properties