Analytic formulae for the effective conductivity of a square or hexagonal array of parallel tubes