Compact terahertz photonic crystal chip sandwiched in parallel metallic plates