Two-path interference of single-particle pulses measured by the Unruh–DeWitt-type quantum detector