Quanto: Tracking Energy in Networked Embedded Systems