LiREP: Lightweight Incremental Reprogramming of Sensor Nodes Based On In-situ Modification