Regeneration of waste pickling liquors