Phylogenetic analysis of sulfate assimilation and cysteine biosynthesis in phototrophic organisms