Ab initio calculations of the static electric polarizability of infinite polymer chains