Megacities: comparative analysis of urban macrosystems