Terahertz Modal Analysis of a Grounded Liquid-crystal Cell and Its Application as a Tunable Cavity Antenna