Unsupervised Risk Estimation with Domain-Invariant Predictors