Terrestrial Gamma-Ray Flashes as Powerful Particle Accelerators