Theoretical study of photoinduced ring-isomerization in the 1,2,4-oxadiazole series