Modeling of microwave discharges in the presence of plasma resonances.