Upconversion lanthanide nanomaterials: basics introduction, synthesis approaches, mechanism and application in photodetector and photovoltaic devices