Stabilization of perturbed systems via linear optimal regulator