The AMIGA project. I. Optical characterization of the CIG catalog