Out-of-plane resonances in terahertz photonic crystal slabs modulated by optical pumping.