A process for the combined fabrication of ion sensors and CMOS circuits