Automated negotiation for opportunistic direct cooperation between neighbouring wireless sensor networks