Emerging-market stocks and currencies gained on the week as investors grew increasingly hopeful that the US and Iran are moving closer to a peace deal.