Analysis of Energy Dissipation in the Memory Hierarchy of Embedded Systems: A Case Study