how does electroplating work in a flow diagram