Modeling the microwave curing of polymers