Total internal reflection in medicine