A new method to detect event-related potentials based on Pearson’s correlation