Absorption of light by complex ions