Atomic level description of the protecting effect of osmolytes against thermal denaturation of proteins