Text this: Fermi-level-managed multi-barrier heterojunction diodes for terahertz detection