Simulation of self-organised dislocation structures in f.c.c. and b.c.c. single crystals