Design of a chemical reactor under microwave irradiation in resonance conditions