Minors of 3-connected matroids and adjoints of binary matroids (polynomial-time algorithm)