On the interaction of nucleic acids with dyes