Merging binary stars and the magnetic white dwarfs