What optical spectroscopy can do to understand materials for thin-film photovoltaics: the chalcopyrites and other semiconductor compounds