Method and apparatus for determining the concentration of a substance which is bonded to particles in a flowing medium