Micromagnetic analysis of injection locking in spin-transfer nano-oscillators