Lattice dynamics of TiO2 rutile: influence of gradient corrections in density functional calculations