Energy-Efficient System Architectures for Intermittently-Powered IoT Devices