Sequence- and structural-selective nucleic acid binding revealed by the melting of mixtures