Determination of the local structure in Ba1-xKxBiO3 by x-ray-absorption spectroscopy.