Dissolution of periodic arrays of grains: Upscaling of pore-scale simulations with fast reactions