Underwater optical sensorbot for in situ pH monitoring