Quantized average consensus via dynamic coding/decoding schemes