Tuning the transmission lineshape of a photonic crystal slab guided-resonance mode by polarization control.