Recent advances in the optimization and functionalization of upconversion nanomaterials for in vivo bioapplications