Hexagon gauge anomaly of the type-I superstring in the path integral method