Local structure in dilute nitrides probed by X-ray absorption spectroscopy