Electroplating with layers of varying thickness