Modification of the j/ψ momentum distribution in heavy-ion collisions through dispersion by the nuclear medium