Ab Initio Investigation On The Surface Chemistry Of Functionalized Titania Membranes