Molecular beam epitaxy of alternating metal-semiconductor films