Excitation of Wannier-Stark states in a chain of coupled optical resonators with linear gain and nonlinear losses