Acoustic emission and electrical properties of quasi-brittle materials under compression