THERMODYNAMICS RELATED PROCESSES DURING THE MIGRATION OF ACID GASES AND METHANE IN DEEP SEDIMENTARY FORMATIONS