Resonant scattering and second-harmonic spectroscopy of planar photonic crystal microcavities