Separation of ions on the front of a shock wave in a multicomponent plasma