Competitive allocation of resources on a network: an agent-based model of air companies competing for the best routes