A cognitive analysis of preference for urban spaces