Robust control of hybrid plants in the presence of quantization errors