Nitrogen abundance in the X-ray halos of clusters and groups of galaxies