Phase relations and the determination of static mass quadrupole moments in the scattering of polarized deuterons