Atomically precise graphene nanoribbons: interplay of structural and electronic properties