Magnetic helicity in multiply connected domains