Cosmic Rays in the Earth Magnetosphere: the importance of the External Field models in trajectory reconstruction with AMS-02 data