On charge accumulation in heterogeneous porous rocks under the influence of an external electric field