Modeling of injection-locking phenomena in diode-laser arrays