A Methodology for the Deployment of Multi-Agent Systems on Wireless Sensor Networks