Corrected effective medium calculations of the chemisorption of H and N on Fe(100), Fe(110) and W(110)