Recycling water and detergents from washing water in an industrial environment