A Novel Approach for Information Discovery in Wireless Sensor Grids