Systematic classification of three-loop realizations of the Weinberg operator