Theoretical foundations for a quantitative approach to paleogenetics. Part I: DNA.