UN rapporteur says military action on Iran ‘not a magic solution’