Transition of pore-size dependence of ion diffusivity in dye-sensitized solar cells