Fast trigonal/tetragonal interconversion followed by slow chelate-ring closure in the complexation of boronic acids