Atomically thin two-dimensional materials for nanoelectronic and optoelectronic device applications