A percolation treatment of dc hopping conduction