High-Level Power Estimation and Optimization of DRAMs