Exploring the Luminescence Dynamics of Lanthanide-Doped Nanoparticles: Exploiting the Temporal Dimension for Diverse Applications