Spectral dependence of terrestrial gamma‐ray flashes on source distance