Dislocation Formation During Vapor Deposition of Epitaxial Multilayers