Onset of superconductivity in ultrathin granular metal films.