Common features of thermoluminescence in NaCl and LiF crystals