Processing and Communication in Distributed Low-Power Sensor Networks Using Multi-Agent Systems