Low-complexity one-dimensional edge detection in wireless sensor networks