Density functional theory studies of the adsorption of ethylene and oxygen on Pt(111) and Pt3Sn(111)