Theoretical investigation of the mechanism for Xe transfer in the atomic switch