The in silico identification and analysis of ancient and recent endogenous retroviruses in mammalian genomes