Ab initio theory of superconductivity. II. Application to elemental metals