Self-organization of microcircuit structure in networks of spiking neurons with plastic synapses