Stabilizing agent for swimming pools