Deposition of semiconductor materials on a substrate