The method of Lyapunov functions for systems of linear difference equations with almost periodic coefficients