Polarization in the elastic scattering of 12 MeV deuterons by 12C, 56Fe and 58Ni