Chiral unitary approach to the rho meson in the nuclear medium