The Impact of Migration and Innovations on the Life Cycles and Size Distribution of Cities