Modeling the electromagnetic field and the plasma excitation in a moderate pressure microwave cavity plasma source