Granites and thermal structures in the lithosphere