A template-matching algorithm for laminar identification of cortical recording sites from evoked response potentials