Metal-containing crystalline luminescent thermochromic materials