Measurement of the tensor (Ayy) and vector (Ay) analyzing powers in the fragmentation of a 9-GeV/c deuteron on hydrogen and carbon nuclei at high proton transverse momenta