Chemicals for water treatment and softening