Topology of quadrature domains