Analogy as structure and process. Approaches in linguistics, cognitive psychology and philosophy of science