Device and single-molecule analysis method by means of detection of the collisions of a target molecule on functionalized nanopores