A CMOS-based sensor array system for chemical and biochemical applications