Terahertz multi-functional metamaterials based