First-principles investigation of NO x and SO x adsorption on anatase-supported BaO and Pt overlayers