Density effect for the ionization loss of charged particles in various substances