Active THz metamaterial