How water and counterions diffuse into the hydrated montmorillonite