Routing for Intermittently-Powered Sensing Systems