Dust Emission at 8 and 24 μm as Diagnostics of H II Region Radiative Transfer