Optimal quantization for amplitude and phase in computer-generated holography.