Study of the large-scale MHD mode and its effect on GAM in the T-10 tokamak