An anisotropic model for the electrical resistivity of two-phase geologic materials