Design and implementation of distributed algorithms for WSN-based structural health monitoring. (20th February 2009)