Theoretical studies of terrestrial gamma flashes and relativistic runaway electrons