Design of high-Q polystyrene nonlinear cavity for ultrafast all-optical switching in mid-infrared photonic crystal slabs with cavity-waveguide structure