Content-Adaptive Pixel Discretization to Improve Model Robustness