Deterministic quantum state transfer from an electronic charge qubit to a photonic polarization qubit