Polarization of prompt photons produced at large pT in polarized proton-proton collisions