An interim nuclear agreement was reached after eight days of negotiations in Switzerland between six world powers and Iran.