SOTE: A Nonlinear Method for Magnetic Topology Reconstruction in Space Plasmas