Modeling crosshatch surface morphology in growing mismatched layers. Part II: Periodic boundary conditions and dislocation groups