Obama pledges to work with Pakistan for South Asian stability, Afghan peace