Electro- and photocatalytic carbon dioxide reduction and thermal isomerization of highly strained tricyclocompounds