Computation of oscillator strengths from Kohn-Sham wave functions: the example of small lithium clusters