An automatic activation detector for bipolar cardiac electrograms