Chemical microsensor systems for medical applications in catheters