Molecular basis of substrate-induced permeation by an amino acid antiporter