Vacuum modeling of three-dimensional magnetic field topology under resonant magnetic perturbations on EAST