Space-domain method of moments for graphene nanoribbons