XANES study of chemistry of localised corrosion in artificial pits of 316L stainless steel and titanium