Preparation of plating baths by electrolytic dissolution of metals and their performance characteristics