Optimal quadratic filtering of quantization noise in non-gaussian systems