X-ray absorption near edge spectroscopy from reflection x-ray absorption fine structure under the grazing incidence conditions☆