THz detection by multi-layered topological insulator