Analysis of nanopore detector measurements using Machine-Learning methods, with application to single-molecule kinetic analysis