Method and device for analysing elements emerging from the surface of a product and applications