divergence theorem proof in electromagnetic theory