Controlling electronic properties of epitaxial nanocomposites of dissimilar materials