Afridi, Misbah lead Pakistan past Sri Lanka