Chemically-induced structural modulation in whiskers based THz devices