Generalized locally-exact homogenization theory for evaluation of electric conductivity and resistance of multiphase materials