Electrophoretic coating of hydroxyapatite on titanium implants