flux using divergence theorem