pH- and surfactant-mediated tunable morphology and upconversion of rare-earth doped fluoride microcrystals