Anatase and rutile surfaces with adsorbates representative of acidic and basic conditions