Coupled-channels effects for inelastic scattering of 15 MeV polarized deuterons from Ti and Sm isotopes