Simulation of small bird populations. I. Development of a stochastic model