Approximate SRAMs with Dynamic Energy-Quality Management