An assessment of nitrogen concentrations from spectroscopic measurements in the JET and ASDEX Upgrade divertor