Mechanistic study of the complex formation of boric acid