Moderate deviations for quadratic forms in Gaussian stationary processes