Data delivery in fragmented wireless sensor networks using mobile agents