Use of protective surface layers on electrolytic baths