Chemical reactions affecting halloysite dispersion in epoxy nanocomposites