G\"artner-Ellis condition for squared asymptotically stationary Gaussian processes