Perturbation approach to the impurity problem in lattice dynamics