Tailoring the upconversion emission and magnetic properties of NaGdF4:Yb, Er by Mg2+ or Fe3+ doping and optical trapping of individual magnetic nanoparticle at NIR 980 nm