The temperature dependence of the electrical resistivity of granular metals