Optical Spectra and Chemical Bonding in Inorganic Compounds