Loter: A software package to infer local ancestry for a wide range of species