Observation of deuteron D-state and compound nucleus effects in (d, p) reactions on 46Ti and 52Cr with a polarized deuteron beam