CCD spectroscopic observations of Saturn, Uranus, Neptune, and Titan during the 1990 apparitions