Urban metabolism for resource efficient cities: From theory to implementation