Formation of dithianes and dithiolanes catalysed by clay. An unexpected functional selectivity