Theoretical Description of Spacecraft Flybys by Variation of Parameters