Decentralised coordination of mobile sensors using the max-sum algorithm