Nearest-neighbour distribution of distances in crystals from extended X-ray absorption fine structure