Deterministic cavity-QED source of polarization-entangled photon pairs