The general theory of urbanization