Constructive quadratic functional quantization and critical dimension