Estimation of wellbore and formation temperatures during drillin process under lost circulation conditions