Statistical analysis of intensity fluctuations in the second harmonic of a multimode Nd:YAG laser through a modified Pearson correlation coefficient