Nonlinear localization in thermalized lattices: application to DNA