Solar-terrestrial response to large extension or long-duration solar gamma ray events