Divalent metal cation speciation and binding to surface-bound oligonucleotide single strands studied by second harmonic generation.