Electrophoretic deposition of materials using humic acid as a dispersant and film forming agent