A multipurpose CMOS platform for nanosensing