Theoretical aspects of the thermal analysis with practical application in geology and thermal behaviour of clay minerals