Lanthanide upconversion luminescence at the nanoscale: fundamentals and optical properties.