Active terahertz metamaterials based on liquid-crystal induced transparency and absorption