Preflight calibration of the Imaging Magnetograph eXperiment polarization modulation package based on liquid-crystal variable retarders.