Optimized graphene electrodes for contacting graphene nanoribbons