Simulation, measurement, and mitigation of beam instability caused by the kicker impedance in the 3-GeV rapid cycling synchrotron at the Japan Proton Accelerator Research Complex