Radiative currents in quantum-well solar cells