Correcting coarse-grid weather and climate models by machine learning from global storm-resolving simulations