Terahertz photonic crystals