Stability of triple helices containing RNA and DNA strands