First measurement of the rho spectral function in nuclear collisions