CO 2 CoDe : Towards Carbon-Aware Hardware/Software Co-Design for Intermittently-Powered Embedded Systems