In plants, the process of osmosis is important for: