Formation of a deposit by electrophoresis