A Power Consumption Estimation Approach for Embedded Software Design using Trace Analysis