Micromechanics of thermally induced cracking in three crustal rocks