Gravar-mail: A General Modeling Framework for Genome Ancestral Origins in Multiparental Populations