Service discovery and composition in body area networks