Extended polarized semiclassical model for quantum-dot cavity QED and its application to single-photon sources