Conservation of NADPH utilization by chorismate synthase and its implications for the evolution of the shikimate pathway