Functional metagenomics of the thioredoxin superfamily