A fundamental diagram of urbanization