Estimation of the equilibrium formation temperature in the presence of bore fluid invasion