Tests of quantum gravity from observations of γ-ray bursts