Synthesis of cubic and hexagonal NaYF4:Er3+