Impurity doping: a novel strategy for selective synthesis of YF3 and NaYF4 crystals