Tuning the gate-opening pressure and particle size distribution of the switchable metal-organic framework DUT-8(Ni) by controlled nucleation in a micromixer.