Photodimerization and photooxygenation of 9-vinylcarbazole catalyzed by titanium dioxide and magnesium perchlorate