Absorption-line systems in simulated galaxies fed by cold streams