Dependence of inhomogeneous vibrational linewidth broadening on attractive forces from local liquid number densities