Ab Initio Exploration of the Optoelectronic Properties of Low-Dimensional Materials