The holographic spectral function in non-equilibrium states