Predictive data management with mobile agents for wireless sensor networks