Applications of a granular model and percolation theory to the electrical resistivity of heat treated endocarp of babassu nut