Galactic cosmic ray nuclei as a tool for astroparticle physics