The structure of similarity in design