Membership Inference Risks in Quantized Models: A Theoretical and Empirical Study