A survey of opportunistic data gathering and dissemination techniques