Text this: Spike Detection Based on Normalized Correlation with Automatic Template Generation