Generation of aryltropylium ions by photoinduced and thermal electron transfer