Nigel Farage’s decision to call a by-election was not a spur of the moment decision but a considered plan with an acceptance of even the worst-case scenario, as Political editor David Maddox explains