Tracking by weakly-supervised learning and graph optimization for whole-embryo C. elegans lineages