Electrolytic production, recovery or refining of metals by electrolysis of solutions or iron group metals, refractory metals or manganese