A polarimeter for vector- and tensor-polarized deuterons for use in polarization transfer experiments