An Explanation of the Liesegang Phenomenon