Relation learning in a neurocomputational architecture supports cross-domain transfer