Magnetic and upconverted luminescent properties of multifunctional lanthanide doped cubic KGdF4 nanocrystals.