Terahertz spectroscopy of silicon micromachined three-dimensional photonic bandgap crystal