Performances of different density functionals in the computation of vibrational spectra beyond the harmonic approximation