Graphyne- and Graphdiyne-based Nanoribbons: Density Functional Theory Calculations of Electronic Structures