Implementation of Cosmic Ray Energy Spectrum (CRESP) Algorithm in PIERNIK MHD Code. II. Propagation of Primary and Secondary Nuclei in a Magnetohydrodynamic Environment | Synapse