Optical microsensors and microprobes