Analytic quadratic integration over the two-dimensional Brillouin zone