Actively logical modulation of MEMS-based terahertz metamaterial | Synapse