Tunneling study of the charge-density-wave state in 1T-TaS2 and 1T-TaSe2