Evolutionary convergence in the biosyntheses of the imidazole moieties of histidine and purines