Architecture design of an early warning monitoring system for chemical water bodies contamination