On asymptotic equivalence of perturbed linear systems of differential and difference equations