Connection between dephasing of the de Haas-van Alphen effect and scattering of electrons