Magnetic-field-driven ferromagnetic resonance in spin-transfer devices