Determination of the 3′ terminal nucleotide of DNA fragments