On Ions Transport during Drying in a Porous Medium