Persistent homology and Floer-Novikov theory