Metamaterial induced terahertz transparency and absorption