2D Nanomaterial Arrays for Electronics and Optoelectronics