Thermophoretic melting curves quantify the conformation and stability of RNA and DNA