Generative Calibration for In-context Learning