Development of a homogeneous, isotropic, and high dynamic range calorimeter for the study of primary cosmic rays in space experiments