Field-Effect Transistors and Optoelectronic Devices Based on Emerging Atomically Thin Materials