Composition-Gradient-Mediated Semiconductor-Metal Cross over in Ternary Transition-Metal-Dichalcogenide Bilayers.