CaloCube: A new-concept calorimeter for the detection of high-energy cosmic rays in space