Formulation and application of element methods in the simulation of pressure and temperature history of geological basins