Ergodic optimal quadratic control for an affine equation with stochastic and stationary coefficients