Resonance and scattering in microstructured optical fibers