Controlling the interface between substrate and epitaxial layer