Avoiding trap states in poly(n-vinylcarbazole) thin films