Temperature regiocontrol of intramolecular cyclization of di-hydroxysecoacids