Polarization effects in deuteron stripping reactions on 207Pb and 208Pb near the Coulomb barrier