Gavin McDonnell claimed the British super-bantamweight title with a thrilling stoppage win over Leigh Wood.