Polarization amplitudes for W-boson and photon production