CaloCube: an innovative homogeneous calorimeter for the next-generation space experiments