Polyvinyl-locked vs free quaterthiophene: effect of spatial constraints on the electronic properties of n-hexyl-quaterthiophene