Optical switching of terahertz wave based on asymmetric metamaterial structures