Conformational transitions of nucleic acids studied by IR and Raman spectroscopies