On the formation and stability of dislocation patterns—II: Two-dimensional considerations