Convergent and divergent evolution of metabolism in sulfur-oxidizing symbionts and the role of horizontal gene transfer.