Dynamics of quantum and classical correlations of a two-atom system in thermal reservoirs