A novel "modularized" optical sensor for pH monitoring in biological matrixes.