Tunneling and electronic structure of the two-gap superconductor MgB2