Smart optical catheters for epidurals