Electrochemical and electrophoretic coatings of medical implants by nanomaterials