The robotic rover Curiosity has instruments that detect radiation both inside the spacecraft and in the Mars environment. What is most likely the purpose of this radiation detection?