Urban Regeneration for Smart Communities. Applying methods for megalopolis and towns in China