Acoustic and electromagnetic emissions in rocks under compression