Analysis of the change of orbital elements in the process of gravity assist