Text this: Localization in nonlinear lattices and homoclinic dynamics