Genome-graph based genotyping with applications to highly variable genes in P. falciparum