Optimization of pulsed microwave heating