Processes for the electrolytic or electrophoretic production of coatings; electroforming; apparatus therefor