Electronic structure and transport properties of hydrogenated graphene and graphene nanoribbons