Rational maps with clustering and the mating of polynomials