A limit on the variation of the speed of light arising from quantum gravity effects