Layering of semiconductors