Exploring Novel Electronic and Optoelectronic Devices based on Layered Materials