Correcting a coarse-grid climate model in multiple climates by machine learning from global 25-km resolution simulations