Nonvolatile reconfigurable terahertz wave modulator