A system including a medical instrument, a sensor, and a processor module in communication with the sensor. The medical instrument includes a radiation source for transmitting electromagnetic radiation from within a body and through a material in the body. The sensor receives a portion of the electromagnetic radiation transmitted through the material, and the processor module determines at least one characteristic of the material based on the electromagnetic radiation received by the sensor.