A novel technique to measure intensity fluctuations in EUV images and to detect coronal sound waves nearby active regions