Optical and Magnetic Investigations on Lanthanide-Doped Nanoparticles as Dual Imaging Contrast Agents