Gamma-Ray Bursts as Cosmological Tools