Global stellar populations of elliptical galaxies: A. Optical properties.