Terahertz-wave absorbers using a photonic crystal slab