Obama invites Pakistan PM Sharif for October visit