Moderate deviations for non-linear functionals and empirical spectral density of moving average processes