Sustainability assessment of residential urban areas: an early warning analysis