γ-ray burst ultraviolet/optical afterglow polarimetry as a probe of quantum gravity