X-ray photoelectron spectroscopy of 5f electrons in dioxides of neptunium and plutonium