Monte Carlo simulation of the growth of semiconductor quantum wires