Electric carrier concentration in graphite: Dependence of electrical resistivity and magnetoresistance on defect concentration