Service Selection and Composition in Opportunistic Networks