Physics of the Metal-Carbon Nanotube Interfaces: Charge Transfers, Fermi-Level “Pinning” and Application to the Scanning Tunneling Spectroscopy