Studies on process analytical chemistry and effluent treatment methods of some industrially important process