SPAR : Shortest Path Adaptive Routing for Wireless Sensor and Actor Networks