Cyclic anhydride ring opening reactions: theory and application.