Aldehyde reductase: the role of C-terminal residues in defining substrate and cofactor specificities.