Electron-phonon spectral function and two-band model in tunneling measurements on MgB2