A solution to the problem of determining X-points in magnetic induction fields