Trapping intermediates in the melting transition of DNA oligomers