Novel approach for the design and analysis of a terahertz microstrip patch antenna based on photonic crystals