Ab initio investigation of the static polarizability of planar and twisted infinite polythiophene chains