Study of thermal stresses in monocrystals Hg2Cl2, PbCl2 during solidification