Relations of ecological and sociological characteristics of urban sub-areas of a middle-sized city