Multi-layered topological insulator for THz detection