Micro-Architectural Power Estimation and Optimization