Generalization Error Analysis of Quantized Compressive Learning