A simple model for regolith formation by chemical weathering