Asymptotics of Toeplitz determinants and the emptiness formation probability for the XY spin chain