S ep 2 01 4 Boundary Conditions for Effective Hamiltonian and Surface States in 2 D and 3 D Topological Insulators