Fast variations of solar wind flux and the magnetic field in the foreshock: 2. Quasilharmonic structures