Two-dimensional electronics and optoelectronics: From materials syntheses to device applications