Preparation of KMgF3 and Eu-doped KMgF3 nanocrystals in water-in-oil microemulsions