phenolphthalein for wastewater management