Measurement of solids in flue gases