A Thermal/Nonthermal Model for Solar Microwave Bursts