Promoting the Performance of Layered-Material Photodetectors by Alloy Engineering.