Robust Covariate Shift Adaptation for Density-Ratio Estimation