Charge transfer fluorescence and f–f luminescence in ytterbium compounds