An ab initio study of the rearrangement of carbonyl compounds to oxacarbenes