Ruthenium(ii)-catalyzed C–O/C–S cyclization for the synthesis of 5-membered O-containing and S-containing heterocycles