Compounds containing thioxanthrone and carbazole rings