Generalized oscillator strengths and photoionization of alkali-metal atoms