Internal heating and thermal emission from old neutron stars