Tandem ring-closing metathesis and hydrogenation towards cyclic dinucleotides.