French President Emmanuel Macron says two French nationals have been released from an Iranian prison. They had been detained for more than three years.