Ultraviolet light gives astronomers new clues on mysterious stellar eruptions