Design and Analysis of a Photonic Crystal Based Planar Antenna for THz Applications