An ISFET based microsystem for pH measurements