Influence of planetary oblateness on Keplerian dynamics in magnetospheres and existence of invariant tori