How did industrialization and immigration influence of living and working conditions in the urban in royal areas in the late 1800s