CaloCube: A novel calorimeter for high-energy cosmic rays in space