Density functional theory investigation of the adsorption behaviors of SO2 and NO2 on a Pt(111) surface