Classification of obstructions for separation of semialgebraic sets in dimension 3