Comparison of the polarizability of periodic systems computed by using the length and velocity operators