Urban functions, hierarchies and areas of influence