Embedded optical sensing for robots in extreme environments