Text this: Denoising method of acoustic emission and electromagnetic signals of rocks