Final-state interactions in B-->Drho and B-->D*pi decays