Testing the Einstein's equivalence principle with polarized gamma-ray bursts