Template syntheses of cadmium/lead halides as luminescence thermometers