Optimal Content-Dependent Dynamic Brightness Scaling for OLED Displays