Stretching DNA and RNA to probe their interactions with proteins