Design, optimization and fabrication of an integrated optoelectronic sensing chip with applications in groundwater contaminant detection and biosensing