Charge-density-wave phase transitions in quasi-2D 1T-TaS2/h-BN heterostructure devices