Agglomeration processes based on knowledge externalities: an agent-based simulation study