X-ray absorption near edge structure and crystallographic studies of the mixed valence oxide SrRu0.8Ni0.2O3