Freeform Fabrication of Photonic Crystals for Tera-hertz Wave Control