Quantized density response in insulators