Genomics of a phototrophic nitrite oxidizer: insights into the evolution of photosynthesis and nitrification