Doping evolution of the local electronic and structural properties of the double perovskite ba2na1-xcaxoso6