Pakistan, Iran agree to enhance border security