Instance theory as a domain-general framework for cognitive psychology