Spin-transfer-torque resonant switching and injection locking in the presence of a weak external microwave field for spin valves with perpendicular materials