Studying electromagnetic signal of rock effected by acoustic impact under uniaxial compression