Dislocation patterning and nanostructure engineering in compositionally graded layer systems