The Formation of Cell Assemblies: a Neural Network Simulation