Spectro-Photometric Evolution of Elliptical Galaxies. III. Infall models with gradients in mass density and star formation