Electronic and Optical Properties of Two-Dimensional Transition Metal Dichalcogenide Nanoribbons: Insights from Density Functional Theory and Many-Body Perturbation Methods