Analysing neutron star in HESS J1731-347 from thermal emission and cooling theory