Frequency modulation of spin-transfer oscillators