Relationship between nucleic acid sequence, structure and function in terms of stabilizing interactions