Tamm surface states in a finite chain of defects in a photonic crystal