Controlled sulfonation of poly(N-vinylcarbazole)