The binary fraction, separation distribution, and merger rate of white dwarfs from the SPY sample